LOCAL_PATH:= $(call my-dir)

# 编译变量初始化：清除之前编译过程中的编译变量的值
include $(CLEAR_VARS)

LOCAL_MODULE := ViewLiveDataLib

LOCAL_MODULE_TAGS := optional



# 签名类型 testkey, media, platform, shared, 默认为testkey
LOCAL_CERTIFICATE := platform

# 库的源文件
LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java)


 #依赖的静态Java库
LOCAL_STATIC_JAVA_LIBRARIES := dependency_jar_lib
#LOCAL_STATIC_JAVA_LIBRARIES += dependency_jar_lib2

LOCAL_AAPT_FLAGS := --auto-add-overlay
LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.appcompat:android.support.v7.gridlayout

# 设置生成静态库
include $(BUILD_STATIC_JAVA_LIBRARY)


include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := dependency_jar_lib:app/libs/dependency_jar_lib.jar
#LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := dependency_jar_lib2:app/libs/dependency_jar_lib2.jar
include $(BUILD_MULTI_PREBUILT)